package tw.com.hitevision.whiteboard.android.stateFile;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;

import androidx.constraintlayout.widget.ConstraintLayout;
import tw.com.hitevision.whiteboard.android.R;

public class JsonAlertDialog extends ConstraintLayout {
    private static final String TAG = JsonAlertDialog.class.getSimpleName();

    public JsonAlertDialog(Context context) {
        super(context);
        init(context);
    }

    public JsonAlertDialog(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        init(context);
    }

    public JsonAlertDialog(Context context, AttributeSet attributeSet, int def) {
        super(context, attributeSet, def);
        init(context);
    }

    private void init(Context context) {
        inflate(context, R.layout.json_alert_dialog_layout, this);
        this.setOnTouchListener((v, event) -> true);
    }

    private void log(String s) {
        Log.d(TAG, s);
    }
}
